const CityReducer=(prevState={
    cityName:"江西",
    isShow:true
},action)=>{
    console.log(action)
    let newState={...prevState}
    switch(action.type){
        case "change-city":
            newState.cityName=action.citys
            newState.isShow=action.isShow
            return newState
        default:
            return prevState
    }
}
export default CityReducer;